/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.perutaxi.datos;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author PeruTaxi
 */
public class Conexion {

    public static Connection getConexion() {
        Connection cnx = null;
        try {
            Class.forName("oracle.jdbc.OracleDriver");
            String bd = "jdbc:oracle:thin:@localhost:1521:XE";
            cnx = DriverManager.getConnection(bd, "PERU_TAXI", "PERU_TAXI");
        } catch (Exception e) {
            e.printStackTrace();
        }

        return cnx;
    }
}
